
package com.idealighter.game.backpack.message;

import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;

import com.idealighter.game.core.annotation.ResMsg;
import com.idealighter.game.message.ModuleMsgIdConstant;
import com.idealighter.game.message.core.ResMessage;

import lombok.Data;

/**
 * 玩家被其他玩家使用道具.
 */
@ResMsg(ModuleMsgIdConstant.Backpack.USED_ITEM_INFO)
@Data
public class ResUsedItemMsg implements ResMessage {
  @Protobuf(order = 1)
  private int id = ModuleMsgIdConstant.Backpack.USED_ITEM_INFO;
  // 使用道具的玩家
  @Protobuf(order = 2)
  private long playerId;
  // 物品id
  @Protobuf(order = 3)
  private int itemId;
  // 物品数量
  @Protobuf(order = 4)
  private int num;
}
